package com.github.nuggets.repository;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.nuggets.model.entity.NuggetsAccountEntity;

import java.util.List;
import java.util.Optional;


/**
 * @description:
 * @author: wangsj
 * @date: 2022/3/17 5:50 下午
 */

public interface AccountRepository extends IService<NuggetsAccountEntity> {


    Optional<NuggetsAccountEntity> getByUserName(String userName);

    Optional<NuggetsAccountEntity> getAccountInfoByUserName(String userName);

    Boolean isUserNameExist(String userName);

}
